﻿using Orchard.Localization;
using Orchard.UI.Navigation;

namespace ContentCreator.Services
{
    public class ContentCreatorNavigationProvider : INavigationProvider
    {
        public ContentCreatorNavigationProvider()
        {
            T = NullLocalizer.Instance;
        }

        public Localizer T { get; set; }

        public string MenuName
        {
            get { return "content-creator"; }
        }

        public void GetNavigation(NavigationBuilder builder)
        {
            builder.Add(T("Content Creator"),
                        menu => menu.Add(T("Create Content"), "5", item => item.Action("Create", "Admin", new {  area = "ContentCreator" }).LocalNav())
                                    .Add(T("Pick Content"), "6", item => item.Action("Pick", "Admin", new { area = "ContentCreator" }).LocalNav()));
        }
    }
}